package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.pojo.User;

/**
 * @Description:
 * @Version: V1.0
 */

public interface UserService {
    /**
     * 查询全部
     * @return
     */
    public PageInfo<User> getAll(int page,int size);

    /**
     *查询单个
     * @return
     */
    public User get(int id);

    /**
     * 新增操作
     * @param user
     * @return
     */
    public boolean save(User user);

    /**
     * 保存操作
     * @param user
     * @return
     */
    public boolean update(User user);

    /**
     * 批量删除
     * @param uuids
     * @return
     */
    public boolean deleteByUuids(String uuids);

    /**
     * 登录验证
     * @param username
     * @param password
     * @return
     */
    public User getUsernameAndPassword( String username, String password);


    /**
     * 分页条件查询
     * @param user
     * @return
     */
    PageInfo<User> getUsers(User user, int page, int size);
}

